﻿using JetBrains.Annotations;
using System;

namespace Dx.DDD.Auditing
{
    /// <summary>
    /// Standard interface for an entity that MAY have a creator.
    /// </summary>
    public interface IMayHaveCreator
    {
        /// <summary>
        /// Id of the creator.
        /// </summary>
        Guid? CreatorId { get; }
    }
    public interface IMayHaveCreator<TCreator>
    {
        /// <summary>
        /// Reference to the creator.
        /// </summary>
        [CanBeNull]
        TCreator? Creator { get; }
    }
}
